<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>

<%@include file="header.jsp"%>
<script src="js/userLogin.js"></script>
<META http-equiv=content-type content=text/html;charset=UTF-8>
<LINK media=screen href="css/userLogin.css" type=text/css rel=stylesheet>
</head>
<%@include file="menu.jsp"%>

<DIV id=page-content>
	
	<DIV id=login-page>
		<DIV id=logo>
		<h3>用户注册</h3>
			<A href=""><IMG alt=LaterThis src="images/logo.jpg"> </A>
		</DIV>
		<FORM name="form" method="post"
			action="userAction!userRegister.action">
			<DIV id=normal-login>
				<P>
					<LABEL for=login>用户名</LABEL> <INPUT id="login"
						name="user.user_name" /><span id="usernameTip" bgcolor="#FFFFFF"></span>
				</P>
				<P>
					<LABEL for=password>请输入密码</LABEL> <BR> <INPUT id="password"
						type=password name="user.user_password" />
				</P>
				<P>
					<LABEL for=password>再次输入密码</LABEL> <BR> <INPUT id="repassword"
						type=password name="user.re_password" />
				</P>

			</DIV>
			<P id=signup>
				<button type="submit" onclick="javascript:return check();"
					class="button" value="注册        ">注册</button>
		</FORM>

		</P>
	</DIV>
</DIV>
<script>
	function check() {
		if (document.getElementById("login").value == "") {
			alert("用户名为空");
			return false;

		}
		if (document.getElementById("password").value == ""
				|| document.getElementById("repassword").value == "") {
			alert("密码为空");
			return false;

		}
		if (document.getElementById("password").value != document
				.getElementById("repassword").value) {
			alert("两次输入密码不同");
			return false;

		}

	}
</script>
<%@include file="footer.jsp"%>